from flask import session
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
from info import create_app, db

app = create_app('development')

manager = Manager(app)

manager.add_command('db', MigrateCommand)

Migrate(app, db)


@app.route('/')
def index():
    session['name'] = '20180602'
    return 'hello flask'


if __name__ == '__main__':
    manager.run()
